<template>
	<view class="pageContent">
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	import config from '../../static/config.js'
	import util from '../../static/utils/util.js'
	export default {
		data() {
			return {
				images: config.images,
				localImages: config.localImages,
				title: '123',
				token: '',
				url: 'https://h5.teslian.cn/#/orderManagement',
				// url: 'http://h5.teslian.cn/#/orderManagement',
				// url: 'https://h5.teslian.cn/',
			}
		},
		onLoad() {
			var token = wx.getStorageSync('token');
			var notice = wx.getStorageSync('notice');
			var info = wx.getStorageSync('info');
			if (token) {
				this.token = true;
				// this.formData.visitorNotifySwitch = notice
			}
		},
		onShow(){
			console.log('url=',this.url)
		},
		methods: {
			async faceSatus() {
				var url = '/UserServer/mini/install/faceSatus'
				var params = {
					equipmentId: this.equipment.equipmentId || '1',
					gatePostId: this.equipment.gatePostId || '123'
				}
				var options = {
					url,
					params
				}
				var param = await util.requestPro(options)
				return param
			},
			notifySwi(index) {
				wx.setStorageSync('notice', index)
				this.formData.visitorNotifySwitch = index
			},
			loginOut() {
				wx.clearStorageSync();
				wx.redirectTo({
					url: '/pages/index/login1'
				})
			},
			systemSet() {
				wx.navigateTo({
					url: '/pages/index/systemSet'
				})
			},
		},

	}
</script>

<style>
	.pageContent {
		padding: 50rpx 30rpx 0rpx 30rpx;
		background: #FFFFFF;
		height: 100vh;
	}

	.setSwi {
		display: flex;
		justify-content: space-between;
		padding: 0rpx 0rpx 60rpx 0rpx;
	}

	.houseMain {
		margin: 0rpx 0rpx 0rpx 0rpx;
	}

	.houseFace {
		font-size: 32rpx;
		font-weight: 400;
		color: #333333;
		line-height: 42rpx;
		padding-bottom: 6rpx;
	}

	.houseFaceSta {
		background: #FF6E5D;
		border-radius: 32rpx;
		font-size: 22rpx;
		color: #FFFFFF;
		padding: 2rpx 10rpx 2rpx 10rpx;
		margin: 0rpx 0rpx 0rpx 10rpx;
	}

	.houseMsg {
		font-size: 26rpx;
		font-weight: 400;
		color: #999999;
		line-height: 30rpx;
	}

	.houseRight {
		display: flex;
		align-items: center;
	}

	.houseRightFail {
		font-size: 30rpx;
		color: #FF6E5D;
	}

	.switchImg {
		width: 72rpx;
		height: 32rpx;
		margin-left: 10rpx;
		/* border: 0.3rpx solid #f00; */

	}

	.setAbou {
		position: relative;
		padding: 20rpx 0rpx 20rpx 0rpx;
	}

	.rightArrow {
		height: 24rpx;
		width: 24rpx;
		top: 24rpx;
		right: 10rpx;
	}

	.btBottom {
		position: fixed;
		width: 600rpx;
		bottom: 220rpx;
		left: 50%;
		margin-left: -300rpx;
	}
</style>
